GtkApplicationWindow: Fix menubar example
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Fri, 4 Sep 2020 11:49:28 +0000 (13:49 +0200)
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Fri, 4 Sep 2020 11:49:28 +0000 (13:49 +0200)
This example was using invalid attribute syntax.

gtk/gtkapplicationwindow.c

index f8ab3d406a6817695cf89b215c2a5e033e1889d4..b952b644c3cc9aa403e7fc4647de1c691f80258a 100644 (file)
  * GtkBuilder *builder = gtk_builder_new_from_string (
  *     "<interface>"
  *     "  <menu id='menubar'>"
- *     "    <submenu label='_Edit'>"
- *     "      <item label='_Copy' action='win.copy'/>"
- *     "      <item label='_Paste' action='win.paste'/>"
+ *     "    <submenu>"
+ *     "      <attribute name='label' translatable='yes'>_Edit</attribute>"
+ *     "      <item>"
+ *     "        <attribute name='label' translatable='yes'>_Copy</attribute>"
+ *     "        <attribute name='action'>win.copy</attribute>"
+ *     "      </item>"
+ *     "      <item>"
+ *     "        <attribute name='label' translatable='yes'>_Paste</attribute>"
+ *     "        <attribute name='action'>win.paste</attribute>"
+ *     "      </item>"
  *     "    </submenu>"
  *     "  </menu>"
  *     "</interface>",